﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "出货检验单-检验项", TableName = "Mass_OutIns_Detltems", DBServer = "SysDbContext")]
    public partial class Mass_OutIns_Detltems : SysEntity
    {
        /// <summary>
        ///出货检验单检测项主键
        /// </summary>
        [Key]
        [Display(Name = "出货检验单检测项主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_OutInspection_CheckItemId { get; set; }

        /// <summary>
        ///出货检验单主键
        /// </summary>
        [Display(Name = "出货检验单主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_OutInspection_ID { get; set; }

        /// <summary>
        ///检验模版检验项主键
        /// </summary>
        [Display(Name = "检验模版检验项主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_OutIns_Template_Item_ItemId { get; set; }

        /// <summary>
        ///模版主键
        /// </summary>
        [Display(Name = "模版主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_OutIns_DetectionTemplate_ID { get; set; }

        /// <summary>
        ///检测项主键
        /// </summary>
        [Display(Name = "检测项主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_OutIns_DetectionItems_ID { get; set; }

        /// <summary>
        ///检测项名称
        /// </summary>
        [Display(Name = "检测项名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string Mass_OutIns_DetectionItems_Name { get; set; }

        /// <summary>
        ///检测项编码
        /// </summary>
        [Display(Name = "检测项编码")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Mass_OutIns_DetectionItems_Code { get; set; }

        /// <summary>
        ///检测项类型
        /// </summary>
        [Display(Name = "检测项类型")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_OutIns_DetectionItems_Type { get; set; }

        /// <summary>
        ///检测工具
        /// </summary>
        [Display(Name = "检测工具")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_OutIns_DetectionItems_Tool { get; set; }

        /// <summary>
        ///检测要求
        /// </summary>
        [Display(Name = "检测要求")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_OutIns_DetectionItems_Require { get; set; }

        /// <summary>
        ///标准值
        /// </summary>
        [Display(Name = "标准值")]
        [DisplayFormat(DataFormatString = "12,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Mass_OutIns_DetectionItems_StandardValue { get; set; }

        /// <summary>
        ///误差上限
        /// </summary>
        [Display(Name = "误差上限")]
        [DisplayFormat(DataFormatString = "12,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Mass_OutIns_ErrorUp { get; set; }

        /// <summary>
        ///误差下限
        /// </summary>
        [Display(Name = "误差下限")]
        [DisplayFormat(DataFormatString = "12,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Mass_OutIns_ErrorDown { get; set; }

        /// <summary>
        ///致命缺陷数量
        /// </summary>
        [Display(Name = "致命缺陷数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_OutIns_FatelNum { get; set; }

        /// <summary>
        ///严重缺陷数量
        /// </summary>
        [Display(Name = "严重缺陷数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_OutIns_SevereNum { get; set; }

        /// <summary>
        ///轻微缺陷数量
        /// </summary>
        [Display(Name = "轻微缺陷数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_OutIns_SlightNum { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        [Editable(true)]
        public string Mass_OutIns_Remark { get; set; }

        /// <summary>
        ///创建人编号
        /// </summary>
        [Display(Name = "创建人编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///修改人编号
        /// </summary>
        [Display(Name = "修改人编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }
    }
}
